/**
 * 计算响应列
 *
 * @param minColumnWidth 最小列宽
 * @param minSpan 最小跨度
 * @returns 响应列配置
 */
export function computeResponsiveColumns(minColumnWidth: number, minSpan = 1) {
  return [
    `${minSpan} ${minColumnWidth * 2}`,
    `${2 * minSpan} ${minColumnWidth * 3}`,
    `${3 * minSpan} ${minColumnWidth * 4}`,
    `${4 * minSpan} ${minColumnWidth * 6}`,
    `${6 * minSpan} ${minColumnWidth * 8}`,
    `${8 * minSpan} ${minColumnWidth * 12}`,
    `${12 * minSpan} ${minColumnWidth * 24}`,
    24 * minSpan,
  ].join(':');
}
